/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.SRPCompliance.Impl;

import za.ac.cput.SRPCompliance.Connection;
import za.ac.cput.SRPCompliance.DataChannel;

/**
 *
 * @author Leo
 */
public class ModemImpl implements Connection,DataChannel{
    
    private char mesg;
    private String pNum;
    @Override
    public void dial(String phno) {
        this.pNum = phno;
    }

    @Override
    public void hangUp() {
        this.pNum=null;
    }

    @Override
    public void send(char msg) {
        this.mesg = msg;
    }

    @Override
    public char recv() {
        return mesg;
    }
    
}
